package tec;
import java.lang.String;
import java.io.Writer;
import java.io.FileWriter;
import java.io.PrintWriter;
import java.io.IOException;

public class SortieFichier implements ModeEcritureLog
{
	FileWriter file;
	public SortieFichier() throws IOException{
		file = new FileWriter("log.txt");
	}
	
	public void close()throws IOException{
		file.close();
	}

	public void ecrireLog(String chaine){
		PrintWriter print = new PrintWriter(file);
		print.println(chaine);
		print.flush();
	}
}

